class ChartRadarEntity {
  String? aiIndex;
  String? aiIndexName;
  String? desc;
  int? guestId;
  String? guestLogo;
  String? guestName;
  String? guestScore;
  String? guestScoreHalf;
  String? guestScoreOt;
  int? homeId;
  String? homeLogo;
  String? homeName;
  String? homeScore;
  String? homeScoreHalf;
  String? homeScoreOt;
  int? leagueId;
  String? leagueName;
  List<RadarData>? radarData;
  int? matchId;
  String? matchTime;
  String? name;
  String? option;
  int? status;
  int? level;
  List<String>? tips;

  ChartRadarEntity(
      {this.aiIndex,
        this.aiIndexName,
        this.desc,
        this.guestId,
        this.guestLogo,
        this.guestName,
        this.guestScore,
        this.guestScoreHalf,
        this.guestScoreOt,
        this.homeId,
        this.homeLogo,
        this.homeName,
        this.homeScore,
        this.homeScoreHalf,
        this.homeScoreOt,
        this.leagueId,
        this.leagueName,
        this.radarData,
        this.matchId,
        this.matchTime,
        this.name,
        this.option,
        this.status,
        this.level,
        this.tips});

  ChartRadarEntity.fromJson(Map<String, dynamic> json) {
    aiIndex = json['aiIndex'];
    aiIndexName = json['aiIndexName'];
    desc = json['desc'];
    guestId = json['guestId'];
    guestLogo = json['guestLogo'];
    guestName = json['guestName'];
    guestScore = json['guestScore'];
    guestScoreHalf = json['guestScoreHalf'];
    guestScoreOt = json['guestScoreOt'];
    homeId = json['homeId'];
    homeLogo = json['homeLogo'];
    homeName = json['homeName'];
    homeScore = json['homeScore'];
    homeScoreHalf = json['homeScoreHalf'];
    homeScoreOt = json['homeScoreOt'];
    leagueId = json['leagueId'];
    leagueName = json['leagueName'];
    if (json['list'] != null) {
      radarData = <RadarData>[];
      json['list'].forEach((v) {
        radarData!.add(new RadarData.fromJson(v));
      });
    }
    matchId = json['matchId'];
    matchTime = json['matchTime'];
    name = json['name'];
    option = json['option'];
    status = json['status'];
    level = json['level'];
    tips = json['tips']?.cast<String>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['aiIndex'] = this.aiIndex;
    data['aiIndexName'] = this.aiIndexName;
    data['desc'] = this.desc;
    data['guestId'] = this.guestId;
    data['guestLogo'] = this.guestLogo;
    data['guestName'] = this.guestName;
    data['guestScore'] = this.guestScore;
    data['guestScoreHalf'] = this.guestScoreHalf;
    data['guestScoreOt'] = this.guestScoreOt;
    data['homeId'] = this.homeId;
    data['homeLogo'] = this.homeLogo;
    data['homeName'] = this.homeName;
    data['homeScore'] = this.homeScore;
    data['homeScoreHalf'] = this.homeScoreHalf;
    data['homeScoreOt'] = this.homeScoreOt;
    data['leagueId'] = this.leagueId;
    data['leagueName'] = this.leagueName;
    if (this.radarData != null) {
      data['list'] = this.radarData!.map((v) => v.toJson()).toList();
    }
    data['matchId'] = this.matchId;
    data['matchTime'] = this.matchTime;
    data['name'] = this.name;
    data['option'] = this.option;
    data['status'] = this.status;
    data['level'] = this.level;
    data['tips'] = this.tips;
    return data;
  }
}

class RadarData {
  String? name;
  double? rate;

  RadarData({this.name, this.rate});

  RadarData.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    rate = json['rate'].toDouble();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['rate'] = this.rate;
    return data;
  }
}
